package org.xxx.epms.result.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.xxx.epms.result.models.GridProvince;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lb
 * @since 2024-06-08
 */
@Mapper
public interface GridProvinceMapper extends BaseMapper<GridProvince> {
    //获取省份数量
    @Select("SELECT COUNT(*) FROM grid_province")
    public int getProvinceCount();

    @Select("SELECT * FROM grid_province")
    public List<GridProvince> getProvinceList();
}
